import { defineStore } from 'pinia'
import { reqLogin } from '@/api/auth'
import type { loginFormData } from '@/api/user/type.ts'

export const userStore = defineStore('user_store', () => {
  //登录
  async function login(loginFormData: loginFormData) {
    return await reqLogin(loginFormData)
  }

  return { login }
})
